package com.jade.logger;

import java.util.ArrayList;
import java.util.List;

public enum ModelProvider {

	INSTANCE;
	
	private List<Message> mes;
	private ModelProvider(){
		mes = new ArrayList<Message>();
		
	}
	
	public List<Message> getMessages(){
		return mes;
	}
	
	
	public void clear(){
		mes.clear();
	}
	
	
	public void addMessage(Message msg){
		mes.add(msg);
	}
	
	public Message getLast(){
		return mes.get(mes.size() - 1);
	}
	
}
